package com.edu.internship.busi.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.edu.internship.busi.dto.CardStudentVO;
import com.edu.internship.busi.entity.CardList;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * code is far away from bug with the animal protecting
 *
 * @author longjihao
 * @description <p>查询消费信息 的Mapper</p>
 * @date 2020-08-13
 */
@Mapper
@Repository
public interface CardStudentMapper extends BaseMapper<CardList> {
    @Select("SELECT * " +
            " FROM t_student, t_card " +
            " ${ew.customSqlSegment} ")
    IPage<CardStudentVO> findCardStudent(IPage<CardStudentVO> page, @Param("ew") Wrapper wrapper);

}
